package com.hz.basic.dao;

import com.hz.basic.entity.CbStiffChalkVideoEntity;
import com.hz.basic.entity.CbStiffLiteracyVideoEntity;
import com.hz.basic.entity.CbStiffPenVideoEntity;
import com.hz.basic.entity.CbStiffTypefaceEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author tongxiaowu
 * @email 15755337992@163.com
 * @date 2021-04-07 12:44:30
 */
@Mapper
public interface CbStiffTypefaceDao extends BaseMapper<CbStiffTypefaceEntity> {

    /**
     * 通过生字id获取粉笔视频
     * @param tid
     * @return
     */
    CbStiffChalkVideoEntity getchalkvideobytid(Long tid);

    /**
     * 通过生字id获取钢笔视频
     * @param tid
     * @return
     */
    CbStiffPenVideoEntity getpenvideobytid(Long tid);

    /**
     * 通过生字id获取识字视频
     * @param tid
     * @return
     */
    CbStiffLiteracyVideoEntity getliteracyvideobytid(Long tid);

    List<CbStiffTypefaceEntity> getstifftypefacesbycondition(String content,int index,int numpage);

    int getstifftypefacestotal(String content);
}
